package com.woniuxy.automotivemanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/*
*
* 角色表
* */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("role")
public class Role {
    @TableId(value = "rid",type = IdType.AUTO)
    private Integer rid;//角色id
    private String rolename;//角色名称
    private String remarks;//角色描述

    @TableField(exist = false)
    private List<Menu> menus;//角色对应的菜单
}
